HAProxy : Refer to the Statistics#1
2015/01/22 |
Configure HAProxy to see HAProxy's Statistics on the web.
|
|
[1] | Configure HAProxy. |
[root@dlp ~]#
vi /etc/haproxy/haproxy.cfg # add follows in the "frontend" section frontend http-in bind *:80 # enable statistics reports stats enable # auth info for statistics site stats auth admin:adminpassword # hide version of HAProxy stats hide-version # display HAProxy hostname stats show-node # refresh time stats refresh 60s # statistics reports' URI stats uri /haproxy?stats /etc/rc.d/init.d/haproxy restart Stopping haproxy: [ OK ] Starting haproxy: [ OK ] |
[2] | Access to the frontend server from a Client with HTTP/HTTPS, then authentication is required like follows, input the auth info you set in config. |
[3] | Just accessed. It's possible to refer to statistics of HAProxy on here. |